/*
 * CommandeRencontre.cpp
 *
 *  Created on: 21 dec. 2012
 *      Author: guegan
 */

#include "CommandeRencontrer.h"
#include "Obstacle.h"

CommandeRencontrer* CommandeRencontrer::instance = NULL;

CommandeRencontrer* CommandeRencontrer::getInstance() {
	if (instance == NULL)
		instance = new CommandeRencontrer();
	
	return instance;
}

Commande* CommandeRencontrer::constructeurVirtuel() {
	Commande* com = new CommandeRencontrer();
	
	return com;
}

void CommandeRencontrer::execute() {
	Obstacle obs;
	
	bot->rencontrerObstacle(obs);
}

void CommandeRencontrer::desexecute() {
	throw Commande::NonReversibleException();
}

bool CommandeRencontrer::reversible() {
	return false;
}

